cut
{base}
Convert Numeric to Factor
leveneTest
{car}
Computes Levene’s test for homogeneity of variance across groups.
mutate
{dplyr}
Modify/create a column in a data frame
setwd
{base}
Set Working Directory
prop.test
{stats}
Test of Equal or Given Proportions
t.test
{stats}
Performs one and two sample t-tests on vectors of data.
read_dta
{haven}
Read a .dta file (Stata data)
c
{base}
Combine values/vectors into a vector
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
ifelse
{base}
Return a or b depending on the value of test
ordered
{dplyr}
Create an ordered factor
library
{base}
Load an R package
The end!